module.exports = {
    configureWebpack: config => {
        // 去掉超过250K大小提示
        config.performance = {
            hints: false
        };
    },
    productionSourceMap: false,
    transpileDependencies: [
        /\/node_modules\/vue-echarts\//,
        /\/node_modules\/resize-detector\//
    ],
    // 本地开发代理
    devServer: {
        proxy: {
            '/api': {
                // 本地测试 http://20.20.20.66:8080
                target: 'http://manage.55duanzi.com', // 线上地址，开发的本地不好使
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    }
};